<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0" name="viewport">
    <meta content="ie=edge" http-equiv="X-UA-Compatible">
    <meta name="description" content="">
    <script src="/static/relation_research_follow/js/rem.js"></script>
    <link rel="stylesheet" href="/static/relation_research_follow/css/style.css?v=11">
    <title>怎么追求Ta</title>
</head>
<body>
<div class="relation_research_follow">
    <!--导航栏-->
    <div class="nav_con" style="visibility:{$is_show_nav?'visible':'hidden'}">
        <div class="nav-box">
            <div class="nav-bg-color" style="height: {$height/50 + 0.88}rem"></div>
            <div class="back_con"
                 {if $is_calculate=== 1 && isset($recode1[
            'id'],$recode2['id'])}
            onclick="commonJsToNativeTransferCalculateRids('{$recode1.id}', '{$recode2.id}','0');"
            {else}
            onclick="commonJsToNative('local', 'back');"
            {/if}
            >
            <img class="img_nav_back" src="/static/relation_research_follow/images/nav/back.png" alt="">
        </div>
        <div class="title-name">怎么追求Ta</div>
        <div class="nav_right_con"
             {if isset($share_data[
        'is_show']) && $share_data.is_show=== 1}
        onclick=commonJsToNativeShareFollowImg({$share_data.data});
        {else}
        onclick=commonJsToNative('local','{$nav_right_click_link}');
        {/if}
        >
        <div class="nav_right_title">{$share_data.is_show?'分享':'解锁记录'}</div>
        <div class="{$is_show_dot == 1 && !$share_data.is_show?'dot':'dot dot_hidden'}"></div>
    </div>
</div>
</div>
{if $error_msg == ""}
<!--中间部分-->
<div class="{$page_status== 3?'middle_con middle_con_padding_bottom_zero':'middle_con'}">

    <!--顶部档案部分-->
    <div class="header_con">

        <div class="recodes_con">
            <!--左边-档案信息部分-->
            <div class="recode_con">
                {if $recode1.id == 0}

                <!--添加档案部分-->
                <div class="add_con">
                    <img class="img_add" src="/static/relation_research_follow/images/common/recode_add.png" alt=""
                         onclick="commonJsToNative('local', '{$recode1.link}');">
                    <div class="text_hint">添加档案</div>
                </div>

                {else}

                <!--切换档案部分-->
                <div class="change_con">
                    <div class="top_con"
                         {if $page_status== 0 || $page_status== 1}
                         onclick="commonJsToNative('local', '{$recode1.link}');
                             {/if}
">
                        <img class="img_avatar" src="{$recode1.avatar}" alt="">
                        {if $page_status== 0 || $page_status== 1}
                        <img class="img_change" src="/static/relation_research_follow/images/common/recode_change_hint.png" alt="">
                        {/if}
                    </div>
                    <div class="text_name">{$recode1.name}</div>
                    <div class="text_asc">{$recode1.asc}</div>
                </div>

                {/if}
            </div>
            <!--中间切换图片-->
            <img class="img_center" src="/static/relation_research_follow/images/common/header_recode_center.png" alt="">
            <!--右边-档案信息部分-->
            <div class="recode_con">
                {if $recode2.id == 0}

                <!--添加档案部分-->
                <div class="add_con">
                    <img class="img_add" src="/static/relation_research_follow/images/common/recode_add.png" alt=""
                         onclick="commonJsToNative('local', '{$recode2.link}');">
                    <div class="text_hint">Ta的档案</div>
                </div>

                {else}

                <!--切换档案部分-->
                <div class="change_con">
                    <div class="top_con"
                         onclick="
                         {if $page_status== 0 || $page_status== 1}
                         commonJsToNative('local', '{$recode2.link}');
                         {/if}
                    "
                    >
                        <img class="img_avatar" src="{$recode2.avatar}" alt="">
                        {if $page_status== 0 || $page_status== 1}
                        <img class="img_change" src="/static/relation_research_follow/images/common/recode_change_hint.png" alt="">
                        {/if}
                    </div>
                    <div class="text_name">{$recode2.name}</div>
                    <div class="text_asc">{$recode2.asc}</div>
                </div>

                {/if}
            </div>
        </div>
    </div>


    {if $page_status==0 || $page_status==1}
    <!--未选择档案 & 未计算 部分-->
    <div class="not_selected_recodes_or_not_calculate_con">
        <!--顶部连接部分-->
        <div class='header_middle_connect_con'>
            <div class="imgs_con">
                <img class="img_connect"
                     src="/static/relation_research_follow/images/not_selected_recodes_or_not_calculate/img_connect.png" alt="">
                <img class="img_connect"
                     src="/static/relation_research_follow/images/not_selected_recodes_or_not_calculate/img_connect.png" alt="">
            </div>
            <div class="line_con"></div>
        </div>

        <!--购买介绍部分-->
        <div class="intro_con">

            <!--顶部图片-->
            <img class="img_intro_header img_intro_header_section_1"
                 src="/static/relation_research_follow/images/not_selected_recodes_or_not_calculate/intro_header.png"
                 alt="">

            <!--第一部分的介绍-->
            <div class="intro_section_1_con">
                <!--标题部分-->
                <div class="title_con">
                    <img class="img_intro_title"
                         src="/static/relation_research_follow/images/not_selected_recodes_or_not_calculate/section_1_header.png"
                         alt="">
                    <div class="title">{$intro_data[0]['title']}</div>
                </div>
                <div class="des_list_con">
                    {foreach $intro_data[0]['list'] as $k=>$v}
                    <div class="des_item_con">
                        <div class="dot"></div>
                        <div class="des">{$v}</div>
                    </div>
                    {/foreach}
                </div>
            </div>


            <!--顶部图片-->
            <img class="img_intro_header img_intro_header_section_2"
                 src="/static/relation_research_follow/images/not_selected_recodes_or_not_calculate/intro_header.png"
                 alt="">

            <!--第二部分的介绍-->
            <div class="intro_section_2_con">
                <!--标题部分-->
                <div class="title_con">
                    <img class="img_intro_title"
                         src="/static/relation_research_follow/images/not_selected_recodes_or_not_calculate/section_2_title.png" alt="">
                </div>
                <div class="des_list_con">
                    {foreach $intro_data[1]['list'] as $k=>$v}
                    <div class="des_item_con">
                        <div class="num">{$k+1}.</div>
                        <div class="des">{$v}</div>
                    </div>
                    {/foreach}
                </div>
            </div>

        </div>

    </div>
    {/if}

    <!--已计算 & 已解锁 部分-->
    {if $page_status==2 || $page_status==3}
    <div class="calculate_or_unlock_con">
        <!--顶部星级部分-->
        <div class="star_con">
            <!--顶部标题-->
            <div class="star_title_con">
                <img class="img_header_title_pre"
                     src="/static/relation_research_follow/images/calculate_or_unlock/header_title_pre.png" alt="">
                <div class="text_title">追求难度星级</div>
                <img class="img_header_title_pre"
                     src="/static/relation_research_follow/images/calculate_or_unlock/header_title_pre.png" alt="">
            </div>
            <!--星级部分-->
            <div class="star_list_con">
                {foreach $calculate_star_data['star_selected_list'] as $k=>$v}
                {if $v === 1}
                <img class="img_star"
                     src="/static/relation_research_follow/images/calculate_or_unlock/star_selected.png" alt="">
                {else}
                <img class="img_star"
                     src="/static/relation_research_follow/images/calculate_or_unlock/star_selected_half.png" alt="">
                {/if}
                {/foreach}
                {foreach $calculate_star_data['star_normal_list'] as $k=>$v}
                <img class="img_star"
                     src="/static/relation_research_follow/images/calculate_or_unlock/star_normal.png" alt="">
                {/foreach}
            </div>
            <!--潜在竞争对手-->
            <div class="enemy_con">
                <div class="text_pre">潜在竞争对手：</div>
                <div class="text_tag">{$calculate_star_data['tag']}</div>
            </div>
            <!--结论-->
            <div class="res">{$calculate_star_data['res']}</div>
        </div>


        <!--档案修改部分（已解锁)-->
        {if $page_status == 3 && $data_recode_change.is_show == 1}
        <div class="recode_change_con">
            <div class="unlock-recode-box {$data_recode_change.is_expand?'expand':''} {$data_recode_change.is_expand?'change':''}"
                 data-expand="{$data_recode_change.is_expand?1:0}">
                <div class="unlock-recode-title">
                    <span class="title">购买时的档案信息</span>
                    <div class="is-expand-box"><span></span></div>
                </div>
                <!--这里是两个档案-->
                {foreach $data_recode_change.records as $recode}
                <div class="recode-info-box">
                    <div class="recode-name-box">
                        <img src="{$recode.avatar}" alt="">
                        <span class="recode-name">{$recode.name}</span>
                    </div>
                    {foreach name="$recode.info_list" item="listItem"}
                    <div class="recode-info-item">
                        <span class="info-title">{$listItem.title}</span>
                        <span class="info-value">{$listItem.content}</span>
                    </div>
                    {/foreach}
                </div>
                {/foreach}
                {if $data_recode_change.is_show == 1 }
                <div class="recode-change-box">
                    <img src="/static/relation_research_follow/images/recode_change/gaojing.png" alt=""
                         class="tip-icon">
                    <img src="/static/relation_research_follow/images/recode_change/close-icon.png" alt=""
                         class="close-icon">
                    <div class="change-title">检测到当前档案出生时间已发生修改</div>
                    <div class="change-desc">已购买的运势内容不会随着档案的修改重新计算</div>
                    <div class="change-btn" onclick="onClickUnLock('{$data_unlock_all.link}','')">再次开通</div>
                </div>
                {/if}
            </div>
        </div>
        {/if}

        <!--已经计算了，但是没有解锁部分  & 已解锁部分-->
        <div class="content_con">
            <!--//0：不展示详细内容；1：隐藏展示；2：已解锁；3：文字列表；（我有哪些优势）4：标签列表；（不实现）5：分段展示（Ta可能喜欢的类型）；6：分段展示文字列表样式（Ta有哪些雷区和禁忌)；7：分段展示文字列表，并且标题与描述分开（应该怎么做？）-->
            <!--词条部分-->
            <div class="words_con">
                {foreach $unlock_data as $k=>$vo}
                <div class="{$k==0?'item_word_con item_word_con_padding_top_small':'item_word_con'}">
                    <!--分割线（只有 每个都有）-->
                    {if $vo.status!=0 && $vo.status!=1 && $vo.status!=2}
                    <div class="sep_line "></div>
                    {/if}

                    <!--顶部标题-->
                    <div class="top_title_con">
                        <img class="img_icon" src="{$vo.icon}" alt="">
                        <div class="{$vo.status == 0?'title title_normal_font_weight':'title'}">{$vo.title}</div>
                    </div>

                    <!--词条内容-->
                    {if $vo.status == 1||$vo.status == 2}
                    <div class="content">{$vo.content}</div>
                    {/if}

                    <!--3：文字列表；（我有哪些优势）-->
                    {if $vo.status==3}
                    <div class='content_word_list_3_con'>
                        {foreach $vo.content_list as $v}
                        <div class="item_text_word_con">
                            <div class="dot"></div>
                            <div class="text_content">{$v}</div>
                        </div>
                        {/foreach}
                    </div>
                    {/if}

                    <!--5：分段展示（Ta可能喜欢的类型）-->
                    {if $vo.status == 5}
                    {if isset($vo.is_show_only_eye) && $vo.is_show_only_eye}
                    <div class='content_word_list_5_con content_word_list_5_con_short'>
                        {else}
                        <div class='content_word_list_5_con'>
                            {/if}
                            {foreach $vo.content_list as $v}
                            <img class="img_header"
                                 src="/static/relation_research_follow/images/not_selected_recodes_or_not_calculate/intro_header.png"
                                 alt="">
                            <div class="item_text_word_con">
                                {foreach $v as $item}
                                {if $item.des_type == 0}
                                <div class="text_content">{$item.des}</div>
                                {else}
                                <div class="text_content_red">{$item.des}</div>
                                {/if}
                                {/foreach}
                            </div>
                            {/foreach}
                        </div>
                        {/if}


                        <!--6：分段展示文字列表样式（Ta有哪些雷区和禁忌)-->
                        {if $vo.status==6}
                        <div class='content_word_list_6_con'>
                            {foreach $vo.content_list as $v}
                            <div class="item_text_word_con">
                                <div class="dot"></div>
                                <div class="text_content">{$v}</div>
                            </div>
                            {/foreach}
                        </div>
                        {/if}


                        <!--7：分段展示文字列表，并且标题与描述分开（应该怎么做？） 描述背景颜色【0:白色背景；1：粉红色背景；2：des_list是文字列表】-->
                        {if $vo.status == 7}
                        <div class='content_word_list_7_con'>
                            {foreach $vo.content_list as $v}
                            <div class="item_text_word_con">
                                <div class="title_con">
                                    <div class="dot"></div>
                                    <div class="text_title">{$v.title}</div>
                                </div>
                                <!--des_type【0:白色背景；1：粉红色背景；2：des_list是文字列表】-->
                                {if $v.des_type == 2}
                                {foreach $v.des_list as $des}
                                <div class="text_des">{$des}</div>
                                {/foreach}
                                {elseif $v.des_type == 0}
                                <div class="text_des">{$v.des}</div>
                                {elseif $v.des_type == 1}
                                <div class="text_des text_des_pink_bg">
                                    {foreach $v.des_list as $item}
                                    <!--0：黑色文字；1：红色文字；-->
                                    {if $item.des_type == 1}
                                    <div class="text_time_des_pink">{$item.des}</div>
                                    {else}
                                    <div class="text_time_des">{$item.des}</div>
                                    {/if}
                                    {/foreach}
                                </div>
                                {/if}
                            </div>
                            {/foreach}
                        </div>
                        {/if}

                        <!--暂时只能看这么多了-->
                        {if isset($vo.is_show_only_eye) && $vo.is_show_only_eye}
                        <!--已计算，未解锁，盖上去的最后一行文字-->
                        <div class="content_hidden_con"></div>
                        <div class="unlock_view_hint_con">
                            <img class="img_eye" src="/static/relation_research_follow/images/caclute/eye.png" alt="">
                            <div class="text_hint">暂时只能看这么多了</div>
                        </div>
                        {/if}

                    </div>
                    {/foreach}

                    <!--更多报告内容，解锁后可查看-->
                    {if $page_status == 2}
                    <div class="unlock_hint_con">
                        <div class="text_hint">更多报告内容，解锁后可查看</div>
                        <img class="img_lock" src="/static/relation_research_follow/images/caclute/lock.png" alt="">
                    </div>
                    {/if}

                    {if $page_status == 3}
                    <div class="unlocked_hint_con">
                        本结论仅供参考，只是基于占星学的一些判断
                    </div>
                    {/if}
                </div>
            </div>

        </div>
        {/if}

    </div>

    <!--底部未选择档案 + 已选择档案 未计算的 部分-->
    {if $page_status==0 || $page_status==1}
    <div class="bottom_unselected_recode_or_uncalculate_con">
        {if $page_status==0}
        <div class="btn">免费计算追求难度系数</div>
        {else}
        <div class="btn add_btn_selected_recode" onclick="commonJsToNativeTransferCalculateRids('{$recode1.id}', '{$recode2.id}','1');">
            免费计算追求难度系数
        </div>
        {/if}
    </div>
    {elseif $page_status == 2}
    <!--底部存在已解锁的时候，增加占位-->
    <div class="bottom_sep_con"></div>
    <div class="bottom_active_and_unlock_con">
        {if $data_unlock_all.time > 0}
        <!--活动标示部分-->
        <div class="active_con">
            <img class="img_active" src="" alt="">
            <div class="time_con">
                <div class="text_num" id="day"></div>
                <div class="text_dot" id="dot_1"></div>
                <div class="text_num" id="hour"></div>
                <div class="text_dot" id="dot_2"></div>
                <div class="text_num" id="min"></div>
                <div class="text_dot" id="dot_3"></div>
                <div class="text_num" id="sec"></div>
            </div>
        </div>
        {/if}
        <!--解锁价格和按钮部分-->
        <div class="unlock_con">
            <div class="left_con">
                {if $data_unlock_all.time > 0}
                <!--活动的原价格-->
                <div class="price_orginal">{$data_unlock_all.price_orginal}</div>
                {/if}
                <div class="price">{$data_unlock_all.price}</div>
                {if $price_unit === "准币"}
                <div class="price_unit">{$price_unit}</div>
                {/if}
            </div>
            <div class="btn" onclick="onClickAll('{$data_unlock_all.link}');">解锁全部</div>
        </div>
    </div>
    {/if}

    {else}
    <div class="error_con">
        <img class="img_err" src="/static/relation_research_follow/images/error.png" alt="">
        <div class="text_err">{$error_msg}</div>
    </div>
    {/if}

    <!--alert部分-->
    {if isset($alert) && $alert.is_show}
    <div class="alert_con">
        <div class="alert_shandow"></div>
        <div class="alert_content_con">
            <div class="content">{$alert.msg}</div>
            <div class="sep_line"></div>
            <div class="bottom_btns_con">
                <div class="cancle" onclick="onClickAlertCancle()">知道了</div>
                <div class="sep_line"></div>
                <div class="ok" onclick="onClickAlertOk('{$alert.link}')">前往查看</div>
            </div>
        </div>
    </div>
    {/if}
</div>
{include file="../apps/web/view/public/sensors.html" /}
<script type="text/javascript">
    window.error_msg = '{$error_msg}';//是否展示日志

    window.is_show_log = '{$is_show_log}';//是否展示日志
    window.navHeight = {$height};
    window.appType = '{$appType}';
    window.isShow = 1; // 1抽屉隐藏 2抽屉显示
    window.time = '{$error_msg?0:$data_unlock_all.time}';//解锁全部时间
    window.sensor_data = JSON.parse('{:json_encode($sensor_data)}');//打点数据

    window.page_status = '{$error_msg?0:$page_status}';//当前页面状态

    window.recode1 = JSON.parse('{:json_encode($recode1)}')
    window.recode2 = JSON.parse('{:json_encode($recode2)}')

</script>
<script type="text/javascript" src="/static/relation_research_follow/js/jquery-v2.1.1.min.js?v=10"></script>
<script type="text/javascript" src="/static/relation_research_follow/js/common.js?v=10"></script>
<script type="text/javascript">
    if ('{$error_msg}' !== "") {//当没有异常信息的时候，才进行初始化
        console.error('{$error_msg}');
    } else {
        init();//初始化
    }
</script>
</body>
</html>
